package com.baosu.Exception;

import lombok.Data;

/**
 * 自定义异常处理器，用于封装异常信息，对异常进行分类
 */
@Data
public class BusinessException extends RuntimeException{

    private Boolean status;

    public BusinessException(Boolean status, String message) {
        super(message);
        this.status = status;
    }

    public BusinessException(Boolean status,String message,Throwable cause) {
        super(message, cause);
        this.status = status;
    }
}
